Public Class BarLeft
    Inherits System.Web.UI.UserControl

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub
    Protected WithEvents LinkButton1 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton2 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton3 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton4 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton5 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton7 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton8 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents Image1 As System.Web.UI.WebControls.Image
    Protected WithEvents Image2 As System.Web.UI.WebControls.Image
    Protected WithEvents Image3 As System.Web.UI.WebControls.Image
    Protected WithEvents Image4 As System.Web.UI.WebControls.Image
    Protected WithEvents Image5 As System.Web.UI.WebControls.Image
    Protected WithEvents Image6 As System.Web.UI.WebControls.Image
    Protected WithEvents Image7 As System.Web.UI.WebControls.Image
    Protected WithEvents Image8 As System.Web.UI.WebControls.Image
    Protected WithEvents LinkButton9 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton10 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton11 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton12 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton13 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton14 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton15 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton16 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton17 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents LinkButton6 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents Image10 As System.Web.UI.WebControls.Image
    Protected WithEvents Image11 As System.Web.UI.WebControls.Image
    Protected WithEvents Image12 As System.Web.UI.WebControls.Image
    Protected WithEvents Image13 As System.Web.UI.WebControls.Image
    Protected WithEvents Image14 As System.Web.UI.WebControls.Image
    Protected WithEvents Image15 As System.Web.UI.WebControls.Image
    Protected WithEvents Image16 As System.Web.UI.WebControls.Image
    Protected WithEvents Image17 As System.Web.UI.WebControls.Image
    Protected WithEvents Image18 As System.Web.UI.WebControls.Image
    Protected WithEvents Image19 As System.Web.UI.WebControls.Image
    Protected WithEvents LinkButton18 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents Table1 As System.Web.UI.HtmlControls.HtmlTable
    Protected WithEvents LinkButton19 As System.Web.UI.WebControls.LinkButton
    Protected WithEvents Image9 As System.Web.UI.WebControls.Image

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        If Not Page.IsPostBack = True Then
            If CObj(Session("StatusHide")) Is "1" Then
                Me.Table1.Visible = True
            Else
                Me.Table1.Visible = False
            End If
            'Me.Table1.Visible = False
            'Session("StatusHide") = "0"
        End If
    End Sub

    Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
        Session("StatusHide") = "0"
        Response.Redirect("ListCarReserver.aspx")
    End Sub

    Private Sub LinkButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton2.Click
        Session("StatusHide") = "0"
        Response.Redirect("CarReserver_Info.aspx?Type=1")
    End Sub

    Private Sub LinkButton3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton3.Click
        Session("StatusHide") = "0"
        Response.Redirect("ApproveCarReserver.aspx")
    End Sub

    Private Sub LinkButton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton4.Click
        Session("StatusHide") = "0"
        Response.Redirect("ApproveCarReserverByBoss.aspx")
    End Sub

    Private Sub LinkButton5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton5.Click
        Session("StatusHide") = "0"
        Response.Redirect("CloseWork.aspx")
    End Sub

    Private Sub LinkButton8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton8.Click
        Session("StatusHide") = "0"
        Response.Redirect("CarReserver_Info.aspx?Type=0")
    End Sub

    Private Sub LinkButton9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton9.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_Description.aspx?Type=6")
    End Sub

    Private Sub LinkButton10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton10.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_DataType.aspx")
    End Sub

    Private Sub LinkButton11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton11.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car.aspx")
    End Sub

    Private Sub LinkButton12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton12.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_Description.aspx?Type=1")
    End Sub

    Private Sub LinkButton13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton13.Click
        Response.Redirect("Car_Description.aspx?Type=2")
    End Sub

    Private Sub LinkButton14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton14.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_Description.aspx?Type=3")
    End Sub

    Private Sub LinkButton15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton15.Click
        Session("StatusHide") = "1"
        Response.Redirect("Driver_Group.aspx")
    End Sub

    Private Sub LinkButton16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton16.Click
        Session("StatusHide") = "1"
        Response.Redirect("Driver.aspx")
    End Sub

    Private Sub LinkButton6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton6.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_Description.aspx?Type=4")
    End Sub

    Private Sub LinkButton17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton17.Click
        Session("StatusHide") = "1"
        Response.Redirect("Car_Description.aspx?Type=5")
    End Sub

    Private Sub LinkButton18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton18.Click
        If Session("StatusHide") Is "0" Then
            Me.Table1.Visible = True
            Session("StatusHide") = "1"
            'Response.Redirect("Index.aspx")
        Else
            Me.Table1.Visible = False
            Session("StatusHide") = "0"
        End If
    End Sub

    Private Sub LinkButton19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton19.Click
        Session("StatusHide") = "1"
        Response.Redirect("DataApprove.aspx")
    End Sub
End Class
